﻿    <div ng-controller="portalSuggestionInfoController">
        <ol class="breadcrumb pull-right">
            <li><a ui-sref="app.home">汇票线</a></li>
            <li><a ui-sref="app.portal">投诉建议管理</a></li>
            <li class="active">投诉建议信息</li>
        </ol>

        <h1 class="page-header"><i class="fa fa-lg text-success fa-fax"></i>投诉建议信息</h1>

        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-inverse">
                    <div class="panel-heading">
                        <div class="panel-heading-btn">
                            <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
                            <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-repeat"></i></a>
                            <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
                            <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-danger" data-click="panel-remove"><i class="fa fa-times"></i></a>
                        </div>
                        <h4 class="panel-title">投诉建议信息</h4>
                    </div>
                    <div class="panel-body">
                        <div class="form-inline filter-option">
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="pull-left">
                                        <select ng-model="filter.suggestionTypeId" class="form-control input-sm" ng-change="reflash()">
                                            <option value="1">投诉</option>
                                            <option value="2">建议</option>
                                        </select>
                                        <select ng-model="filter.handleStatusCode" class="form-control input-sm" ng-change="reflash()">
                                            <!--<option value="">处理阶段</option>-->
                                            <option value="0">未查看</option>
                                            <option value="1">处理中</option>
                                            <option value="2">处理结束</option>
                                        </select>
                                    </div>
                                    <div class="pull-right">
                                        <input type="text" ng-model="filter.keyword" class="form-control input-sm" placeholder="关键词" />
                                        <button class="btn btn-sm btn-info" ng-click="reflash()"><i class="fa fa-search"></i> 筛选</button>
                                       <!-- <button class="btn btn-sm btn-success" ng-click="edit()"><i class="fa fa-plus-circle"></i> 新增</button>-->
                                    </div>
                                </div>
                            </div>
                        </div>
                        <table id="data-table" ng-table="tableParams" template-pagination="template/pagination.html" class="table table-striped table-bordered table-hover table-condensed">
                            <tr ng-repeat="item in $data">
                                <td data-title="'序号'" width="10%" class="text-center">{{ item.id }}</td>
                                <td data-title="'类型'" width="10%" class="text-left">{{ item.suggestion_type_name }}</td>
                                <td data-title="'用户ID'" width="10%" class="text-left">{{ item.suggestion_person_id }}</td>
                                <td data-title="'用户'" class="text-left">{{ item.suggestion_person_name }}</td>
                                <td data-title="'信息名称'" class="text-left">{{ item.suggestion_title }}</td>
                                <td data-title="'信息内容'" class="text-left">{{ item.suggestion_detail }}</td>
                                <td data-title="'状态'" class="text-left">{{ item.status }}</td>
                                <td data-title="'描述'" class="text-left">{{ item.description }}</td>
                                <td class="text-center width-100 text-nowrap">
                                    <button class="btn btn-success btn-xs" ng-click="edit(item)"><i class="fa fa-edit"></i> 处理</button>
                                     <button class="btn btn-success btn-xs" ng-click="remove(item)"><i class="fa fa-trash-o"></i> 删除</button>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="modal fade" id="modal-edit">
                        <div class="modal-dialog">
                            <div class="modal-content">
                                <ng-form name="editForm" novalidate>
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                                        <h4 class="modal-title"><i class="fa fa-lg fa-edit text-success"></i>处理</h4>
                                    </div>
                                    <div class="modal-body">
                                        <div class="form-horizontal form-inline">
                                            <!--<div class="form-group width-full">
                                                <label class="col-md-3 control-label"><font color="red">*</font>ID:</label>
                                                <div class="col-md-8">
                                                    <input type="text" name="id" ng-model="model.id" class="form-control width-full" required />
                                                </div>
                                            </div>-->
                                            <div class="form-group width-full" ng-class="{ 'has-error': editForm.handle_result.$invalid && !editForm.handle_result.$pristine }">
                                                <label class="col-md-3 control-label"><font color="red">*</font> 处理信息: </label>
                                                <div class="col-md-8">
                                                    <input type="text" name="handle_result" ng-model="model.handle_result" class="form-control width-full" required />
                                                </div>
                                            </div>
                                            <!--<div class="form-group width-full" ng-class="{ 'has-error': editForm.bank_name.$invalid && !editForm.bank_name.$pristine }">
                                                <label class="col-md-3 control-label"><font color="red">*</font> 发布人: </label>
                                                <div class="col-md-8">
                                                    <input type="text" name="suggestion_person_name" ng-model="model.suggestion_person_name" class="form-control width-full" required />
                                                </div>
                                            </div>
                                            <div class="form-group width-full">
                                                <label class="col-md-3 control-label"><font color="red">*</font> 发布标题: </label>
                                                <div class="col-md-8">
                                                    <input type="text" name="suggestion_title" ng-model="model.suggestion_title" class="form-control width-full" required />
                                                </div>
                                            </div>
                                            <div class="form-group width-full">
                                                <label class="col-md-3 control-label"><font color="red">*</font> 发布内容: </label>
                                                <div class="col-md-8">
                                                    <input type="text" name="suggestion_detail" ng-model="model.suggestion_detail" class="form-control width-full" required />
                                                </div>
                                            </div>
                                            <div class="form-group width-full">
                                                <label class="col-md-3 control-label"><font color="red">*</font> 描述: </label>
                                                <div class="col-md-8">
                                                    <input type="text" name="description" ng-model="model.description" class="form-control width-full" required />
                                                </div>
                                            </div>-->
                                        </div>
                                    </div>
                                    <div class="modal-footer">
                                        <button type="submit" class="btn btn-sm btn-success" ng-click="save()" ng-disabled="editForm.$invalid"><i class="fa fa-save"></i> 保存</button>
                                        <button type="button" class="btn btn-sm btn-white" data-dismiss="modal"><i class="fa fa-share-square-o"></i> 关闭</button>
                                    </div>
                                </ng-form>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
